gnulib: Copy hidden files to staging area as well
PATCH 1/2 gnulib: Copy hidden files to staging area as well
newer gnulib-tool wrappers try to run a sibling Python launcher file, .gnulib-tool.py, when Python 3 is available. In current gnulib, that file is a real part of the tree, and gnulib-tool will exec "$prog.py" in that mode
--- meta-oe/recipes-support/gnulib/gnulib_202601.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-support/gnulib/gnulib_202601.bb +1 -0
@@ -20,6 +20,7 @@ SRC_URI = "git://git.savannah.gnu.org/git/gnulib.git;branch=stable-${PV};protoco do_install () { install -d ${D}/${datadir}/gnulib cp --no-preserve=ownership --recursive ${S}/* ${D}/${datadir}/gnulib/ + cp --no-preserve=ownership --recursive ${S}/.gnulib-tool.py ${D}/${datadir}/gnulib/ cp --no-preserve=ownership --recursive ${S}/.git ${D}/${datadir}/gnulib/ }
PATCH 2/2 netcf: Stick to shell implementation of gnulib-tool
Fix build with newer autotools and gnulib
Newer gnulib use python implementation by default if it finds py3 on the system. However, netcf is old package and its not expecting python implementation, therefore make the shell implementation be used.
REALLOC_N is gone in latest gnulib so house a local macro
--- ...nulib-read_file-fread_file-signature.patch | 41 ++++++++----- ...bootstrap-with-newer-gnulib-automake.patch | 61 +++++++++++++++++++ .../recipes-support/netcf/netcf_0.2.8.bb | 6 +- 3 files changed, 91 insertions(+), 17 deletions(-) create mode 100644 meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +26 -15
@@ -17,11 +17,9 @@ Signed-off-by: Khem Raj <[email protected]> src/ncftransform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) -diff --git a/src/dutil_linux.c b/src/dutil_linux.c -index 742153a..eb72eb2 100644 --- a/src/dutil_linux.c +++ b/src/dutil_linux.c -@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf * xasprintf(&path, "/sys/class/net/%s/operstate", ifname); ERR_NOMEM(!path, ncf);
@@ -30,7 +28,7 @@ index 742153a..eb72eb2 100644 if (!state) { /* missing operstate is *not* an error. It could be due to an * alias interface, which has no entry in /sys/class/net at -@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf * FREE(path); xasprintf(&path, "/sys/class/net/%s/speed", ifname); ERR_NOMEM(path == NULL, ncf);
@@ -39,11 +37,9 @@ index 742153a..eb72eb2 100644 if (!speed && errno == EINVAL) { /* attempts to read $ifname/speed result in EINVAL if the * interface is ifconfiged down (which isn't exactly the -diff --git a/src/dutil_posix.c b/src/dutil_posix.c -index 1313514..b9884f0 100644 --- a/src/dutil_posix.c +++ b/src/dutil_posix.c -@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const char *const *argv, char **output) +@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const "Failed to create file stream for output while executing '%s': %s", argv_str, errbuf);
@@ -52,11 +48,9 @@ index 1313514..b9884f0 100644 ERR_THROW_STRERROR(*output == NULL, ncf, EEXEC, "Error while reading output from execution of '%s': %s", argv_str, errbuf); -diff --git a/src/ncftool.c b/src/ncftool.c -index f1b5642..c878cb0 100644 --- a/src/ncftool.c +++ b/src/ncftool.c -@@ -351,7 +351,7 @@ static int cmd_define(const struct command *cmd) { +@@ -351,7 +351,7 @@ static int cmd_define(const struct comma struct netcf_if *nif = NULL; int result = CMD_RES_ERR;
@@ -65,8 +59,6 @@ index f1b5642..c878cb0 100644 if (xml == NULL) { fprintf(stderr, "Failed to read %s\n", fname); goto done; -diff --git a/src/ncftransform.c b/src/ncftransform.c -index fbabfc3..4c9a56d 100644 --- a/src/ncftransform.c +++ b/src/ncftransform.c @@ -54,7 +54,7 @@ int main(int argc, char **argv) {
@@ -78,6 +70,25 @@ index fbabfc3..4c9a56d 100644 if (in_xml == NULL) die("Failed to read %s\n", argv[2]); --- -2.44.0 - +--- a/src/internal.h ++++ b/src/internal.h +@@ -30,6 +30,7 @@ + + #include <string.h> + #include <stdarg.h> ++#include <stdlib.h> + + #include <libxslt/transform.h> + #include <libxml/relaxng.h> +@@ -85,6 +86,11 @@ + #define ATTRIBUTE_NOINLINE + #endif /* __GNUC__ */ + ++#ifndef REALLOC_N ++# define REALLOC_N(ptr, count) \ ++ (((ptr) = realloc((ptr), sizeof(*(ptr)) * (count))) == NULL ? -1 : 0) ++#endif ++ + /* This needs ATTRIBUTE_RETURN_CHECK */ + #include "ref.h" +
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch new file +61 -0
61 lines not on this page · raw message
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +4 -2
@@ -10,6 +10,7 @@ SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" PV .= "+git" SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master \ + file://0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch \ file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch" UPSTREAM_CHECK_GITTAGREGEX = "release-(?P<pver>(\d+(\.\d+)+))"
@@ -27,6 +28,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," do_configure:prepend() { + export GNULIB_TOOL_IMPL=sh currdir=`pwd` cd ${S}
@@ -50,11 +52,11 @@ do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_unitdir}/system if [ -d "${D}${libdir}/systemd/system" ]; then - if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then + if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ rm -rf ${D}${libdir}/systemd/ fi - elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then + elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ rm -rf ${D}${nonarch_libdir}/systemd/ fi
Re: [oe] [meta-networking][PATCH 2/2] netcf: Stick to shell implementation of gnulib-tool
Quoted 188 lines · Khem Raj via lists.openembedded.org
Fix build with newer autotools and gnulib
Newer gnulib use python implementation by default if it finds py3 on the system. However, netcf is old package and its not expecting python implementation, therefore make the shell implementation be used.
REALLOC_Nis gone in latest gnulib so house a local macroSigned-off-by Khem Raj <[email protected]>--- ...nulib-read_file-fread_file-signature.patch | 41 ++++++++----- ...bootstrap-with-newer-gnulib-automake.patch | 61 +++++++++++++++++++ .../recipes-support/netcf/netcf_0.2.8.bb | 6 +- 3 files changed, 91 insertions(+), 17 deletions(-)create mode 100644
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patchmeta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +26
-15@@ -17,11 +17,9 @@ Signed-off-by: Khem Raj <[email protected]> src/ncftransform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) -diff --git a/src/dutil_linux.c b/src/dutil_linux.c -index 742153a..eb72eb2 100644 --- a/src/dutil_linux.c +++ b/src/dutil_linux.c -@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf * xasprintf(&path, "/sys/class/net/%s/operstate", ifname); ERR_NOMEM(!path, ncf);@@ -30,7 +28,7 @@ index 742153a..eb72eb2 100644 if (!state) { /* missing operstate is *not* an error. It could be due to an * alias interface, which has no entry in /sys/class/net at -@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf * FREE(path); xasprintf(&path, "/sys/class/net/%s/speed", ifname); ERR_NOMEM(path == NULL, ncf);@@ -39,11 +37,9 @@ index 742153a..eb72eb2 100644 if (!speed && errno == EINVAL) { /* attempts to read $ifname/speed result in EINVAL if the * interface is ifconfiged down (which isn't exactly the -diff --git a/src/dutil_posix.c b/src/dutil_posix.c -index 1313514..b9884f0 100644 --- a/src/dutil_posix.c +++ b/src/dutil_posix.c -@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const char *const *argv, char **output) +@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const "Failed to create file stream for output while executing '%s': %s", argv_str, errbuf);@@ -52,11 +48,9 @@ index 1313514..b9884f0 100644 ERR_THROW_STRERROR(*output == NULL, ncf, EEXEC, "Error while reading output from execution of '%s': %s", argv_str, errbuf); -diff --git a/src/ncftool.c b/src/ncftool.c -index f1b5642..c878cb0 100644 --- a/src/ncftool.c +++ b/src/ncftool.c -@@ -351,7 +351,7 @@ static int cmd_define(const struct command *cmd) { +@@ -351,7 +351,7 @@ static int cmd_define(const struct comma struct netcf_if *nif = NULL; int result = CMD_RES_ERR;@@ -65,8 +59,6 @@ index f1b5642..c878cb0 100644 if (xml == NULL) { fprintf(stderr, "Failed to read %s\n", fname); goto done; -diff --git a/src/ncftransform.c b/src/ncftransform.c -index fbabfc3..4c9a56d 100644 --- a/src/ncftransform.c +++ b/src/ncftransform.c @@ -54,7 +54,7 @@ int main(int argc, char **argv) {@@ -78,6 +70,25 @@ index fbabfc3..4c9a56d 100644 if (in_xml == NULL) die("Failed to read %s\n", argv[2]); --- -2.44.0 - +--- a/src/internal.h ++++ b/src/internal.h +@@ -30,6 +30,7 @@ + + #include <string.h> + #include <stdarg.h> ++#include <stdlib.h> + + #include <libxslt/transform.h> + #include <libxml/relaxng.h> +@@ -85,6 +86,11 @@ + #define ATTRIBUTE_NOINLINE + #endif /* __GNUC__ */ + ++#ifndef REALLOC_N ++# define REALLOC_N(ptr, count) \ ++ (((ptr) = realloc((ptr), sizeof(*(ptr)) * (count))) == NULL ? -1 : 0) ++#endif ++ + /* This needs ATTRIBUTE_RETURN_CHECK */ + #include "ref.h" +meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch new file +61
-0@@ -0,0 +1,61 @@ +From dded6e3321e304f50922e61c553d4e4eb0f80fd0 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 22 Mar 2026 11:05:34 -0700 +Subject: [PATCH] netcf: fix bootstrap with newer gnulib/automake + +Upstream netcf is old enough that bootstrap/autoreconf now trips over: +- gnulib-tool.py wrapper expectations in newer gnulib +- stricter automake handling of AM_CFLAGS += from generated gnulib.mk +- subdir source warnings +- deprecated INCLUDES usage + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 2 +- + gnulib/lib/Makefile.am | 2 +- + gnulib/tests/Makefile.am | 2 ++ + tests/Makefile.am | 2 +- + 4 files changed, 5 insertions(+), 3 deletions(-) + +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_CONFIG_SRCDIR([src/netcf.c]) + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([gnulib/m4]) + AC_CONFIG_HEADERS([config.h]) +-AM_INIT_AUTOMAKE([-Wno-portability 1.11 color-tests parallel-tests]) ++AM_INIT_AUTOMAKE([-Wno-portability 1.11 subdir-objects color-tests parallel-tests]) + AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. + AC_CANONICAL_HOST + +--- a/gnulib/lib/Makefile.am ++++ b/gnulib/lib/Makefile.am +@@ -13,4 +13,4 @@ CLEANFILES= + + include gnulib.mk + +-INCLUDES = $(GETTEXT_CPPFLAGS) ++AM_CPPFLAGS = $(GETTEXT_CPPFLAGS) +--- a/gnulib/tests/Makefile.am ++++ b/gnulib/tests/Makefile.am +@@ -3,6 +3,6 @@ + ## Copyright (C) 2011 Red Hat, Inc. + ## See COPYING.LIB for the License of this software + +-include gnulib.mk ++AM_CFLAGS = + +-INCLUDES = $(GETTEXT_CPPFLAGS) ++include gnulib.mk +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -14,7 +14,7 @@ TESTS_ENVIRONMENT = \ + abs_top_builddir='$(abs_top_builddir)' \ + abs_top_srcdir='$(abs_top_srcdir)' + +-INCLUDES = -I$(top_srcdir)/src ++AM_CPPFLAGS = -I$(top_srcdir)/src + + TESTS= + check_PROGRAMS=meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-0@@ -10,6 +10,7 @@ SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" PV .= "+git" SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master \ + file://0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch \ file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch" UPSTREAM_CHECK_GITTAGREGEX = "release-(?P<pver>(\d+(\.\d+)+))"
meta-networking/recipes-support/netcf/netcf_0.2.8.bb PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" · line 31
Quoted 4 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-0@@ -27,6 +28,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," do_configure:prepend() { + export GNULIB_TOOL_IMPL=sh
It seems this line is missing after merge.
Regards,
Kai
Quoted 26 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +2
-3currdir=`pwd` cd ${S}@@ -50,11 +52,11 @@ do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_unitdir}/system if [ -d "${D}${libdir}/systemd/system" ]; then - if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then + if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ rm -rf ${D}${libdir}/systemd/ fi - elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then + elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ rm -rf ${D}${nonarch_libdir}/systemd/ fi -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#125489): https://lists.openembedded.org/g/openembedded-devel/message/125489
Mute This Topic: https://lists.openembedded.org/mt/118452427/3616933
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Kai Kang Wind River Linux
Re: [oe] [meta-networking][PATCH 2/2] netcf: Stick to shell implementation of gnulib-tool
Quoted 206 lines · Kai Kang via lists.openembedded.org
Quoted 10 lines · Khem Raj via lists.openembedded.org
Fix build with newer autotools and gnulib
Newer gnulib use python implementation by default if it finds py3 on the system. However, netcf is old package and its not expecting python implementation, therefore make the shell implementation be used.
REALLOC_Nis gone in latest gnulib so house a local macroQuoted 7 lines
Signed-off-by Khem Raj <[email protected]>--- ...nulib-read_file-fread_file-signature.patch | 41 ++++++++----- ...bootstrap-with-newer-gnulib-automake.patch | 61 +++++++++++++++++++ .../recipes-support/netcf/netcf_0.2.8.bb | 6 +- 3 files changed, 91 insertions(+), 17 deletions(-)create mode 100644
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patchQuoted 2 lines
diff --git
a/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patchb/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patchQuoted 2 lines
index
b188248fff..83fdfded52100644
---
a/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patchQuoted 1 line
+++
b/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patchQuoted 23 lines
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +2
-4@@ -17,11 +17,9 @@ Signed-off-by: Khem Raj <[email protected]> src/ncftransform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) -diff --git a/src/dutil_linux.c b/src/dutil_linux.c -index 742153a..eb72eb2 100644 --- a/src/dutil_linux.c +++ b/src/dutil_linux.c -@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf * xasprintf(&path, "/sys/class/net/%s/operstate", ifname); ERR_NOMEM(!path, ncf);@@ -30,7 +28,7 @@ index 742153a..eb72eb2 100644 if (!state) { /* missing operstate is *not* an error. It could be due to an * alias interface, which has no entry in /sys/class/net at -@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf *ncf, +@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf * FREE(path); xasprintf(&path, "/sys/class/net/%s/speed", ifname); ERR_NOMEM(path == NULL, ncf);meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch index 742153a..eb72eb2 100644 · line 46
Quoted 8 lines
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +0
-3@@ -39,11 +37,9 @@ index 742153a..eb72eb2 100644 if (!speed && errno == EINVAL) { /* attempts to read $ifname/speed result in EINVAL if the * interface is ifconfiged down (which isn't exactly the -diff --git a/src/dutil_posix.c b/src/dutil_posix.c -index 1313514..b9884f0 100644 --- a/src/dutil_posix.c +++ b/src/dutil_posix.c -@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const char*const *argv, char **output)
Review index 742153a..eb72eb2 100644 · line 43
Quoted 2 lines
(quoted diff) +1
-0+@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const "Failed to create file stream for output whileexecuting '%s': %s",
Review index 1313514..b9884f0 100644 · line 49
Quoted 5 lines
(quoted diff) +0
-0argv_str, errbuf);@@ -52,11 +48,9 @@ index 1313514..b9884f0 100644 ERR_THROW_STRERROR(*output == NULL, ncf, EEXEC, "Error while reading output from execution of'%s': %s",
Quoted 33 lines
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +8
-8argv_str, errbuf); -diff --git a/src/ncftool.c b/src/ncftool.c -index f1b5642..c878cb0 100644 --- a/src/ncftool.c +++ b/src/ncftool.c -@@ -351,7 +351,7 @@ static int cmd_define(const struct command *cmd) { +@@ -351,7 +351,7 @@ static int cmd_define(const struct comma struct netcf_if *nif = NULL; int result = CMD_RES_ERR;@@ -65,8 +59,6 @@ index f1b5642..c878cb0 100644 if (xml == NULL) { fprintf(stderr, "Failed to read %s\n", fname); goto done; -diff --git a/src/ncftransform.c b/src/ncftransform.c -index fbabfc3..4c9a56d 100644 --- a/src/ncftransform.c +++ b/src/ncftransform.c @@ -54,7 +54,7 @@ int main(int argc, char **argv) {@@ -78,6 +70,25 @@ index fbabfc3..4c9a56d 100644 if (in_xml == NULL) die("Failed to read %s\n", argv[2]); --- -2.44.0 - +--- a/src/internal.h ++++ b/src/internal.h +@@ -30,6 +30,7 @@ + + #include <string.h> + #include <stdarg.h> ++#include <stdlib.h>meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch index fbabfc3..4c9a56d 100644 · line 89
Quoted 10 lines
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +10
-0+ + #include <libxslt/transform.h> + #include <libxml/relaxng.h> +@@ -85,6 +86,11 @@ + #define ATTRIBUTE_NOINLINE + #endif /* __GNUC__ */ + ++#ifndef REALLOC_N ++# define REALLOC_N(ptr, count) \ ++ (((ptr) = realloc((ptr), sizeof(*(ptr)) * (count))) == NULL ? -1 :0)
Quoted 6 lines
meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch +5
-0++#endif ++ + /* This needs ATTRIBUTE_RETURN_CHECK */ + #include "ref.h" +diff --git
a/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patchb/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patchQuoted 4 lines
new file mode 100644
index 0000000000..62daeff812
---/dev/null
+++
b/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patchQuoted 19 lines
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch new file +18
-0@@ -0,0 +1,61 @@ +From dded6e3321e304f50922e61c553d4e4eb0f80fd0 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 22 Mar 2026 11:05:34 -0700 +Subject: [PATCH] netcf: fix bootstrap with newer gnulib/automake + +Upstream netcf is old enough that bootstrap/autoreconf now trips over: +- gnulib-tool.py wrapper expectations in newer gnulib +- stricter automake handling of AM_CFLAGS += from generated gnulib.mk +- subdir source warnings +- deprecated INCLUDES usage + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 2 +- + gnulib/lib/Makefile.am | 2 +- + gnulib/tests/Makefile.am | 2 ++ + tests/Makefile.am | 2 +-meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch line 28
Quoted 10 lines
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch new file +10
-0+ 4 files changed, 5 insertions(+), 3 deletions(-) + +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_CONFIG_SRCDIR([src/netcf.c]) + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([gnulib/m4]) + AC_CONFIG_HEADERS([config.h]) +-AM_INIT_AUTOMAKE([-Wno-portability 1.11 color-tests parallel-tests]) ++AM_INIT_AUTOMAKE([-Wno-portability 1.11 subdir-objects color-testsparallel-tests])
Review
Quoted 34 lines
meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch new file +33
-0+ AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. + AC_CANONICAL_HOST + +--- a/gnulib/lib/Makefile.am ++++ b/gnulib/lib/Makefile.am +@@ -13,4 +13,4 @@ CLEANFILES= + + include gnulib.mk + +-INCLUDES = $(GETTEXT_CPPFLAGS) ++AM_CPPFLAGS = $(GETTEXT_CPPFLAGS) +--- a/gnulib/tests/Makefile.am ++++ b/gnulib/tests/Makefile.am +@@ -3,6 +3,6 @@ + ## Copyright (C) 2011 Red Hat, Inc. + ## See COPYING.LIB for the License of this software + +-include gnulib.mk ++AM_CFLAGS = + +-INCLUDES = $(GETTEXT_CPPFLAGS) ++include gnulib.mk +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -14,7 +14,7 @@ TESTS_ENVIRONMENT = \ + abs_top_builddir='$(abs_top_builddir)' \ + abs_top_srcdir='$(abs_top_srcdir)' + +-INCLUDES = -I$(top_srcdir)/src ++AM_CPPFLAGS = -I$(top_srcdir)/src + + TESTS= + check_PROGRAMS=(quoted diff) +0
-0b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb
meta-networking/recipes-support/netcf/netcf_0.2.8.bb SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" · line 13
Quoted 8 lines
index
4170e9fab0..d1f9e29d3a100644meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-0@@ -10,6 +10,7 @@ SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" PV .= "+git" SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master \ +file://0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch \
Quoted 1 line
file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch"
meta-networking/recipes-support/netcf/netcf_0.2.8.bb PACKAGECONFIG ??=
Quoted 3 lines
UPSTREAM_CHECK_GITTAGREGEX= "release-(?P<pver>(\d+(\.\d+)+))"meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-0@@ -27,6 +28,7 @@ PACKAGECONFIG ??="${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
Quoted 8 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb PACKAGECONFIG ??= · line 28
Quoted 1 line
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-0PACKAGECONFIG[systemd] ="--with-sysinit=systemd,--with-sysinit=initscripts,"
meta-networking/recipes-support/netcf/netcf_0.2.8.bb PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" · line 31
Quoted 3 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-0do_configure:prepend() { + export GNULIB_TOOL_IMPL=shIt seems this line is missing after merge.
Good eye. But its not needed anymore since the fix works with python version too, sticking to shell version was a stop gap anyway
Quoted 46 lines
Regards,
Kaimeta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() { · line 52
Quoted 5 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-0currdir=`pwd` cd ${S}@@ -50,11 +52,11 @@ do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true','false', d)}; then
meta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() {
Quoted 5 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-1install -d ${D}${systemd_unitdir}/system if [ -d "${D}${libdir}/systemd/system" ]; then - if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then + if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then mv ${D}${libdir}/systemd/system/*${D}${systemd_unitdir}/system/
meta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() {
Quoted 3 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-1rm -rf ${D}${libdir}/systemd/ fi - elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ;then
meta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() { · line 59
Quoted 1 line
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +1
-0+ elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ;then
meta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() { · line 60
Quoted 1 line
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-0mv ${D}${nonarch_libdir}/systemd/system/*${D}${systemd_unitdir}/system/
meta-networking/recipes-support/netcf/netcf_0.2.8.bb do_install:append() { · line 62
Quoted 5 lines
meta-networking/recipes-support/netcf/netcf_0.2.8.bb +0
-0rm -rf ${D}${nonarch_libdir}/systemd/ fi--
Kai Kang
Wind River Linux-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#125593):
https://lists.openembedded.org/g/openembedded-devel/message/125593
Mute This Topic: https://lists.openembedded.org/mt/118452427/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-networking][PATCH 2/2] netcf: Stick to shell implementation of gnulib-tool
Quoted 263 lines · Khem Raj
On Tue, Mar 24, 2026 at 5:54 PM Kai Kang via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLAN4H8TQ$> <[email protected]> wrote:
On 3/23/26 02:26, Khem Raj via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLAN4H8TQ$> wrote: > Fix build with newer autotools and gnulib > > Newer gnulib use python implementation by default if it > finds py3 on the system. However, netcf is old package > and its not expecting python implementation, therefore > make the shell implementation be used. > > REALLOC_N is gone in latest gnulib so house a local > macro > > Signed-off-by: Khem Raj <[email protected]> > --- > ...nulib-read_file-fread_file-signature.patch | 41 ++++++++----- > ...bootstrap-with-newer-gnulib-automake.patch | 61 +++++++++++++++++++ > .../recipes-support/netcf/netcf_0.2.8.bb <https://urldefense.com/v3/__http://netcf_0.2.8.bb__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIHNt5dCQ$> | 6 +- > 3 files changed, 91 insertions(+), 17 deletions(-) > create mode 100644 meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch > > diff --git a/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch b/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch > index b188248fff..83fdfded52 100644 > --- a/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch > +++ b/meta-networking/recipes-support/netcf/netcf/0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch > @@ -17,11 +17,9 @@ Signed-off-by: Khem Raj <[email protected]> > src/ncftransform.c | 2 +- > 4 files changed, 5 insertions(+), 5 deletions(-) > > -diff --git a/src/dutil_linux.c b/src/dutil_linux.c > -index 742153a..eb72eb2 100644 > --- a/src/dutil_linux.c > +++ b/src/dutil_linux.c > -@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf *ncf, > +@@ -1113,7 +1113,7 @@ static void add_link_info(struct netcf * > > xasprintf(&path, "/sys/class/net/%s/operstate", ifname); > ERR_NOMEM(!path, ncf); > @@ -30,7 +28,7 @@ index 742153a..eb72eb2 100644 > if (!state) { > /* missing operstate is *not* an error. It could be due to an > * alias interface, which has no entry in /sys/class/net at > -@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf *ncf, > +@@ -1132,7 +1132,7 @@ static void add_link_info(struct netcf * > FREE(path); > xasprintf(&path, "/sys/class/net/%s/speed", ifname); > ERR_NOMEM(path == NULL, ncf); > @@ -39,11 +37,9 @@ index 742153a..eb72eb2 100644 > if (!speed && errno == EINVAL) { > /* attempts to read $ifname/speed result in EINVAL if the > * interface is ifconfiged down (which isn't exactly the > -diff --git a/src/dutil_posix.c b/src/dutil_posix.c > -index 1313514..b9884f0 100644 > --- a/src/dutil_posix.c > +++ b/src/dutil_posix.c > -@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const char *const *argv, char **output) > +@@ -211,7 +211,7 @@ int run_program(struct netcf *ncf, const > "Failed to create file stream for output while executing '%s': %s", > argv_str, errbuf); > > @@ -52,11 +48,9 @@ index 1313514..b9884f0 100644 > ERR_THROW_STRERROR(*output == NULL, ncf, EEXEC, > "Error while reading output from execution of '%s': %s", > argv_str, errbuf); > -diff --git a/src/ncftool.c b/src/ncftool.c > -index f1b5642..c878cb0 100644 > --- a/src/ncftool.c > +++ b/src/ncftool.c > -@@ -351,7 +351,7 @@ static int cmd_define(const struct command *cmd) { > +@@ -351,7 +351,7 @@ static int cmd_define(const struct comma > struct netcf_if *nif = NULL; > int result = CMD_RES_ERR; > > @@ -65,8 +59,6 @@ index f1b5642..c878cb0 100644 > if (xml == NULL) { > fprintf(stderr, "Failed to read %s\n", fname); > goto done; > -diff --git a/src/ncftransform.c b/src/ncftransform.c > -index fbabfc3..4c9a56d 100644 > --- a/src/ncftransform.c > +++ b/src/ncftransform.c > @@ -54,7 +54,7 @@ int main(int argc, char **argv) { > @@ -78,6 +70,25 @@ index fbabfc3..4c9a56d 100644 > if (in_xml == NULL) > die("Failed to read %s\n", argv[2]); > > --- > -2.44.0 > - > +--- a/src/internal.h > ++++ b/src/internal.h > +@@ -30,6 +30,7 @@ > + > + #include <string.h> > + #include <stdarg.h> > ++#include <stdlib.h> > + > + #include <libxslt/transform.h> > + #include <libxml/relaxng.h> > +@@ -85,6 +86,11 @@ > + #define ATTRIBUTE_NOINLINE > + #endif /* __GNUC__ */ > + > ++#ifndef REALLOC_N > ++# define REALLOC_N(ptr, count) \ > ++ (((ptr) = realloc((ptr), sizeof(*(ptr)) * (count))) == NULL ? -1 : 0) > ++#endif > ++ > + /* This needs ATTRIBUTE_RETURN_CHECK */ > + #include "ref.h" > + > diff --git a/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch b/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch > new file mode 100644 > index 0000000000..62daeff812 > --- /dev/null > +++ b/meta-networking/recipes-support/netcf/netcf/0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch > @@ -0,0 +1,61 @@ > +From dded6e3321e304f50922e61c553d4e4eb0f80fd0 Mon Sep 17 00:00:00 2001 > +From: Khem Raj <[email protected]> > +Date: Sun, 22 Mar 2026 11:05:34 -0700 > +Subject: [PATCH] netcf: fix bootstrap with newer gnulib/automake > + > +Upstream netcf is old enough that bootstrap/autoreconf now trips over: > +- gnulib-tool.py <https://urldefense.com/v3/__http://gnulib-tool.py__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZKWSdXS_w$> wrapper expectations in newer gnulib > +- stricter automake handling of AM_CFLAGS += from generated gnulib.mk <https://urldefense.com/v3/__http://gnulib.mk__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIIKmHWZA$> > +- subdir source warnings > +- deprecated INCLUDES usage > + > +Upstream-Status: Pending > +Signed-off-by: Khem Raj <[email protected]> > +--- > + configure.ac <https://urldefense.com/v3/__http://configure.ac__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZKUbn9G5Q$> | 2 +- > + gnulib/lib/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> | 2 +- > + gnulib/tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> | 2 ++ > + tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> | 2 +- > + 4 files changed, 5 insertions(+), 3 deletions(-) > + > +--- a/configure.ac <https://urldefense.com/v3/__http://configure.ac__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZKUbn9G5Q$> > ++++ b/configure.ac <https://urldefense.com/v3/__http://configure.ac__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZKUbn9G5Q$> > +@@ -3,7 +3,7 @@ AC_CONFIG_SRCDIR([src/netcf.c]) > + AC_CONFIG_AUX_DIR([build-aux]) > + AC_CONFIG_MACRO_DIR([gnulib/m4]) > + AC_CONFIG_HEADERS([config.h]) > +-AM_INIT_AUTOMAKE([-Wno-portability 1.11 color-tests parallel-tests]) > ++AM_INIT_AUTOMAKE([-Wno-portability 1.11 subdir-objects color-tests parallel-tests]) > + AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. > + AC_CANONICAL_HOST > + > +--- a/gnulib/lib/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > ++++ b/gnulib/lib/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > +@@ -13,4 +13,4 @@ CLEANFILES= > + > + include gnulib.mk <https://urldefense.com/v3/__http://gnulib.mk__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIIKmHWZA$> > + > +-INCLUDES = $(GETTEXT_CPPFLAGS) > ++AM_CPPFLAGS = $(GETTEXT_CPPFLAGS) > +--- a/gnulib/tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > ++++ b/gnulib/tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > +@@ -3,6 +3,6 @@ > + ## Copyright (C) 2011 Red Hat, Inc. > + ## See COPYING.LIB for the License of this software > + > +-include gnulib.mk <https://urldefense.com/v3/__http://gnulib.mk__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIIKmHWZA$> > ++AM_CFLAGS = > + > +-INCLUDES = $(GETTEXT_CPPFLAGS) > ++include gnulib.mk <https://urldefense.com/v3/__http://gnulib.mk__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIIKmHWZA$> > +--- a/tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > ++++ b/tests/Makefile.am <https://urldefense.com/v3/__http://Makefile.am__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLS_OOI6A$> > +@@ -14,7 +14,7 @@ TESTS_ENVIRONMENT = \ > + abs_top_builddir='$(abs_top_builddir)' \ > + abs_top_srcdir='$(abs_top_srcdir)' > + > +-INCLUDES = -I$(top_srcdir)/src > ++AM_CPPFLAGS = -I$(top_srcdir)/src > + > + TESTS= > + check_PROGRAMS= > diff --git a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb <https://urldefense.com/v3/__http://netcf_0.2.8.bb__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIHNt5dCQ$> b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb <https://urldefense.com/v3/__http://netcf_0.2.8.bb__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIHNt5dCQ$> > index 4170e9fab0..d1f9e29d3a 100644 > --- a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb <https://urldefense.com/v3/__http://netcf_0.2.8.bb__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIHNt5dCQ$> > +++ b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb <https://urldefense.com/v3/__http://netcf_0.2.8.bb__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZIHNt5dCQ$> > @@ -10,6 +10,7 @@ SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" > PV .= "+git" > > SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master <https://urldefense.com/v3/__http://pagure.io/netcf.git;protocol=https;branch=master__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLCEtYGwg$> \ > + file://0001-netcf-fix-bootstrap-with-newer-gnulib-automake.patch \ > file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch" > > UPSTREAM_CHECK_GITTAGREGEX = "release-(?P<pver>(\d+(\.\d+)+))" > @@ -27,6 +28,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" > PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," > > do_configure:prepend() { > + export GNULIB_TOOL_IMPL=sh It seems this line is missing after merge.
Quoted 1 line
Good eye. But its not needed anymore since the fix works with python version too, sticking to shell version was a stop gap anyway
My local repo still fails without this line. I'll double check it.
Many thanks.
Kai
Quoted 53 lines
Regards,
Kai
> currdir=`pwd`
> cd ${S}
>
> @@ -50,11 +52,11 @@ do_install:append() {
> if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd',
'true', 'false', d)}; then
> install -d ${D}${systemd_unitdir}/system
> if [ -d "${D}${libdir}/systemd/system" ]; then
> - if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ;
then
> + if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ;
then
> mv ${D}${libdir}/systemd/system/*
${D}${systemd_unitdir}/system/
> rm -rf ${D}${libdir}/systemd/
> fi
> - elif [ "${systemd_unitdir}" !=
"${nonarch_libdir}/systemd" ] ; then
> + elif [ "${systemd_unitdir}" !=
"${nonarch_libdir}/systemd" ] ; then
> mv ${D}${nonarch_libdir}/systemd/system/*
${D}${systemd_unitdir}/system/
> rm -rf ${D}${nonarch_libdir}/systemd/
> fi
>
>
>
--
Kai Kang
Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#125593):
https://lists.openembedded.org/g/openembedded-devel/message/125593
<https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/125593__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLt8wBJEA$>
Mute This Topic:
https://lists.openembedded.org/mt/118452427/1997914
<https://urldefense.com/v3/__https://lists.openembedded.org/mt/118452427/1997914__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLzJ0t0CA$>
Group Owner: [email protected]
<mailto:openembedded-devel%[email protected]>
Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
<https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!AjveYdw8EvQ!dpEKfhC6PW8F-dlmEPqrerZbXWROTFJ0Wi9fgevUSozYEheDF_2UTzKsYIrOwr3gCvYczeuvoZLXvTOnKg$>
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-Signature · 2 lines
Kai Kang Wind River Linux